/*
 * rtl_tcp_andro is a library that uses libusb and librtlsdr to
 * turn your Realtek RTL2832 based DVB dongle into a SDR receiver.
 * It independently implements the rtl-tcp API protocol for native Android usage.
 * Copyright (C) 2016 by Martin Marinov <martintzvetomirov@gmail.com>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef RTLSDR_SDREXCEPTION_H
#define RTLSDR_SDREXCEPTION_H

enum sdr_exception {
     EXIT_OK = 0,
     EXIT_WRONG_ARGS = 1,
     EXIT_INVALID_FD = 2,
     EXIT_NO_DEVICES = 3,
     EXIT_FAILED_TO_OPEN_DEVICE = 4,
     EXIT_CANNOT_RESTART = 5,
     EXIT_CANNOT_CLOSE = 6,
     EXIT_UNKNOWN = 7,
     EXIT_SIGNAL_CAUGHT = 8,
     EXIT_NOT_ENOUGH_POWER = 9,
};

#endif //RTLSDR_SDREXCEPTION_H
